<?php

namespace app\activity\common;

/**
 * cache key模板
 *
 */
class CacheKeyTemplate
{
    /**
     * 叫号的刚取的号
     * @param $date
     * @param $queueName
     * @return string
     */
    public static function getQueueOrderNumber($date,$queueName) {
        $tmpl = 'get_queue_order_number_date_%s_queuename_%s';
        return sprintf($tmpl,$date,$queueName);
    }

    /**
     * 叫号正在被叫的号
     * @param $date
     * @param $queueName
     * @return string
     */
    public static function getQueuePassNumber($date,$queueName) {
        $tmpl = 'get_queue_pass_number_date_%s_queuename_%s';
        return sprintf($tmpl,$date,$queueName);
    }
}